home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / ROMDefs.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  11KB  |  271 lines

  1. /*
  2.      File:        ROMDefs.h
  3.  
  4.      Contains:    NuBus card ROM Definitions.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. */
  18. #ifndef __ROMDEFS__
  19. #define __ROMDEFS__
  20.  
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25.  
  26. #if PRAGMA_IMPORT_SUPPORTED
  27. #pragma import on
  28. #endif
  29.  
  30. #if PRAGMA_ALIGN_SUPPORTED
  31. #pragma options align=mac68k
  32. #endif
  33.  
  34.  
  35. enum {
  36.     appleFormat                    = 1,                            /*Format of Declaration Data (IEEE will assign real value)*/
  37.     romRevision                    = 1,                            /*Revision of Declaration Data Format*/
  38.     romRevRange                    = 9,                            /*Revision of Declaration Data Format [1..9]*/
  39.     testPattern                    = 1519594439L,                    /*FHeader long word test pattern*/
  40.     sCodeRev                    = 2,                            /*Revision of code (For sExec)*/
  41.     sExec2                        = 2,
  42.     sCPU68000                    = 1,                            /*CPU type = 68000*/
  43.     sCPU68020                    = 2,                            /*CPU type = 68020*/
  44.     sCPU68030                    = 3,                            /*CPU type = 68030*/
  45.     sCPU68040                    = 4,                            /*CPU type = 68040*/
  46.     sMacOS68000                    = 1,                            /*Mac OS, CPU type = 68000*/
  47.     sMacOS68020                    = 2,                            /*Mac OS, CPU type = 68020*/
  48.     sMacOS68030                    = 3,                            /*Mac OS, CPU type = 68030*/
  49.     sMacOS68040                    = 4,                            /*Mac OS, CPU type = 68040*/
  50.     board                        = 0,                            /*Board sResource - Required on all boards*/
  51.     displayVideoAppleTFB        = 16843009L,                    /*Video with Apple parameters for TFB card.*/
  52.     displayVideoAppleGM            = 16843010L,                    /*Video with Apple parameters for GM card.*/
  53.     networkEtherNetApple3Com    = 33620225L,                    /*Ethernet with apple parameters for 3-Comm card.*/
  54.     testSimpleAppleAny            = -2147417856L,                    /*A simple test sResource.*/
  55.     endOfList                    = 255,                            /*End of list*/
  56.     defaultTO                    = 100                            /*100 retries.*/
  57. };
  58.  
  59.  
  60. enum {
  61.                                                                 /* sResource flags for sRsrc_Flags */
  62.     fOpenAtStart                = 1,                            /* set => open the driver at start time, else do not */
  63.     f32BitMode                    = 2                                /* set => a 32-bit address will be put into dctlDevBase (IM Devices 2-54) */
  64. };
  65.  
  66.  
  67. enum {
  68.     sRsrcType                    = 1,                            /*Type of sResource*/
  69.     sRsrcName                    = 2,                            /*Name of sResource*/
  70.     sRsrcIcon                    = 3,                            /*Icon*/
  71.     sRsrcDrvrDir                = 4,                            /*Driver directory*/
  72.     sRsrcLoadDir                = 5,                            /*Load directory*/
  73.     sRsrcBootRec                = 6,                            /*sBoot record*/
  74.     sRsrcFlags                    = 7,                            /*sResource Flags*/
  75.     sRsrcHWDevId                = 8,                            /*Hardware Device Id*/
  76.     minorBaseOS                    = 10,                            /*Offset to base of sResource in minor space.*/
  77.     minorLength                    = 11,                            /*Length of sResource's address space in standard slot space.*/
  78.     majorBaseOS                    = 12,                            /*Offset to base of sResource in Major space.*/
  79.     majorLength                    = 13,                            /*Length of sResource in super slot space.*/
  80.     sRsrcTest                    = 14,                            /*sBlock diagnostic code*/
  81.     sRsrccicn                    = 15,                            /*Color icon*/
  82.     sRsrcicl8                    = 16,                            /*8-bit (indexed) icon*/
  83.     sRsrcicl4                    = 17,                            /*4-bit (indexed) icon*/
  84.     sDRVRDir                    = 16,                            /*sDriver directory*/
  85.     sGammaDir                    = 64,                            /*sGamma directory*/
  86.     sRsrcVidNames                = 65,                            /*Video mode name directory*/
  87.     sRsrcDock                    = 80,                            /*spID for Docking Handlers*/
  88.     sDiagRec                    = 85,                            /*spID for board diagnostics*/
  89.     sVidAuxParams                = 123,                            /*more video info for Display Manager -- timing information*/
  90.     sDebugger                    = 124,                            /*DatLstEntry for debuggers indicating video anamolies*/
  91.     sVidAttributes                = 125,                            /*video attributes data field (optional,word)*/
  92.     fLCDScreen                    = 0,                            /* bit 0 - when set is LCD, else is CRT*/
  93.     fBuiltInDisplay                = 1,                            /*      1 - when set is built-in (in the box) display, else not*/
  94.     fDefaultColor                = 2,                            /*      2 - when set display prefers multi-bit color, else gray*/
  95.     fActiveBlack                = 3,                            /*      3 - when set black on display must be written, else display is naturally black*/
  96.     fDimMinAt1                    = 4,                            /*      4 - when set should dim backlight to level 1 instead of 0*/
  97.     fBuiltInDetach                = 4,                            /*      4 - when set is built-in (in the box), but detaches*/
  98.     sVidParmDir                    = 126,
  99.     sBkltParmDir                = 140,                            /*directory of backlight tables*/
  100.     stdBkltTblSize                = 36,                            /*size of ``standard'' 0..31-entry backlight table*/
  101.     sSuperDir                    = 254
  102. };
  103.  
  104. /* =======================================================================    */
  105. /* sResource types                                                            */
  106. /* =======================================================================    */
  107.  
  108. enum {
  109.     catBoard                    = 0x0001,                        /*Category for board types.*/
  110.     catTest                        = 0x0002,                        /*Category for test types -- not used much.*/
  111.     catDisplay                    = 0x0003,                        /*Category for display (video) cards.*/
  112.     catNetwork                    = 0x0004,                        /*Category for Networking cards.*/
  113.     catScanner                    = 0x0008,                        /*scanners bring in data somehow*/
  114.     catCPU                        = 0x000A,
  115.     catIntBus                    = 0x000C,
  116.     catProto                    = 0x0011,
  117.     catDock                        = 0x0020,                        /*<Type>*/
  118.     typeBoard                    = 0x0000,
  119.     typeApple                    = 0x0001,
  120.     typeVideo                    = 0x0001,
  121.     typeEtherNet                = 0x0001,
  122.     typeStation                    = 0x0001,
  123.     typeDesk                    = 0x0002,
  124.     typeTravel                    = 0x0003,
  125.     typeDSP                        = 0x0004,
  126.     typeXPT                        = 0x000B,
  127.     typeSIM                        = 0x000C,
  128.     typeDebugger                = 0x0100,
  129.     type68000                    = 0x0002,
  130.     type68020                    = 0x0003,
  131.     type68030                    = 0x0004,
  132.     type68040                    = 0x0005,
  133.     type601                        = 0x0025,
  134.     type603                        = 0x002E,
  135.     typeAppleII                    = 0x0015,                        /*Driver Interface : <id.SW>*/
  136.     drSwMacCPU                    = 0,
  137.     drSwAppleIIe                = 0x0001,
  138.     drSwApple                    = 1,                            /*To ask for or define an Apple-compatible SW device.*/
  139.     drSwMacsBug                    = 0x0104,
  140.     drSwDepewEngineering        = 0x0101,                        /*Driver Interface : <id.SW><id.HW>*/
  141.     drHwTFB                        = 1,                            /*HW ID for the TFB (original Mac II) video card.*/
  142.     drHw3Com                    = 1,                            /*HW ID for the Apple EtherTalk card.*/
  143.     drHwBSC                        = 3,
  144.     drHwGemini                    = 1,
  145.     drHwDeskBar                    = 1,
  146.     drHwATT3210                    = 0x0001,
  147.     drHwBootBug                    = 0x0100,
  148.     drHwMicroDock                = 0x0100,                        /* video hardware id's  - <catDisplay><typVideo>*/
  149.     drHwRBV                        = 0x0018,
  150.     drHwJMFB                    = 0x0019,
  151.     drHwElsie                    = 0x001A,
  152.     drHwTim                        = 0x001B,
  153.     drHwDAFB                    = 0x001C,
  154.     drHwGSC                        = 0x001E,
  155.     drHwDAFBPDS                    = 0x001F,
  156.     drHWVSC                        = 0x0020,
  157.     drHwApollo                    = 0x0021,
  158.     drHwSonora                    = 0x0022,
  159.     drHwReserved2                = 0x0023,
  160.     drHwColumbia                = 0x0024,
  161.     drHwCivic                    = 0x0025,
  162.     drHWPBLCD                    = 0x0027,
  163.     drHWCSC                        = 0x0028,
  164.     drHwJET                        = 0x0029,
  165.     drHWMEMCjr                    = 0x002A,
  166.     drHwValkyrie                = 0x002E,
  167.     drHwKeystone                = 0x002F,
  168.     drHWATI                        = 0x0055,                        /* other drHW id's for built-in functions*/
  169.     drHwSonic                    = 0x0110,
  170.     drHwMace                    = 0x0114,
  171.     drHwDblExp                    = 0x0001,                        /* CPU board IDs - <catBoard> <typBoard> <0000> <0000>*/
  172.     MIIBoardId                    = 0x0010,                        /*Mac II Board ID*/
  173.     ciVidBoardID                = 0x001F,                        /*Aurora25 board ID*/
  174.     CX16VidBoardID                = 0x0020,                        /*Aurora16 board ID*/
  175.     MIIxBoardId                    = 0x0021,                        /*Mac IIx Board ID*/
  176.     SE30BoardID                    = 0x0022,                        /*Mac SE/30 Board ID*/
  177.     MIIcxBoardId                = 0x0023,                        /*Mac IIcx Board ID*/
  178.     MIIfxBoardId                = 0x0024,                        /*F19 board ID*/
  179.     EricksonBoardID                = 0x0028,
  180.     ElsieBoardID                = 0x0029,
  181.     TIMBoardID                    = 0x002A,
  182.     EclipseBoardID                = 0x002B,
  183.     SpikeBoardID                = 0x0033,
  184.     DBLiteBoardID                = 0x0035,
  185.     ZydecoBrdID                    = 0x0036,
  186.     ApolloBoardID                = 0x0038,
  187.     PDMBrdID                    = 0x0039,
  188.     VailBoardID                    = 0x003A,
  189.     WombatBrdID                    = 0x003B,
  190.     ColumbiaBrdID                = 0x003C,
  191.     CycloneBrdID                = 0x003D,
  192.     CompanionBrdID                = 0x003E,
  193.     DartanianBoardID            = 0x0040,
  194.     DartExtVidBoardID            = 0x0046,
  195.     HookBoardID                    = 0x0047,                        /*Hook internal video board ID*/
  196.     EscherBoardID                = 0x004A,                        /*Board ID for Escher (CSC)*/
  197.     POBoardID                    = 0x004D,                        /*Board ID for Primus/Optimus/Aladdin*/
  198.     TempestBrdID                = 0x0050,                        /*Non-official Board ID for Tempest*/
  199.     BlackBirdBdID                = 0x0058,                        /*Board ID for BlackBird*/
  200.     BBExtVidBdID                = 0x0059,                        /*Board ID for BlackBird built-in external video*/
  201.     YeagerBoardID                = 0x005A,                        /*Board ID for Yeager*/
  202.     BBEtherNetBdID                = 0x005E,                        /*Board ID for BlackBird Ethernet board*/
  203.     TELLBoardID                    = 0x0065,                        /*Board ID for TELL (Valkyrie)*/
  204.     MalcolmBoardID                = 0x065E,                        /*Board ID for Malcolm*/
  205.     AJBoardID                    = 0x065F,                        /*Board ID for AJ*/
  206.     M2BoardID                    = 0x0660,                        /*Board ID for M2*/
  207.     OmegaBoardID                = 0x0661,                        /*Board ID for Omega*/
  208.                                                                 /* other board IDs*/
  209.     BoardIDDblExp                = 0x002F,
  210.     DAFBPDSBoardID                = 0x0037,
  211.     MonetBoardID                = 0x0048,
  212.     SacSONIC16BoardID            = 0x004E,
  213.     SacSONIC32BoardID            = 0x004F,                        /* CPU board types - <CatCPU> <Typ680x0> <DrSwMacCPU>*/
  214.     drHWMacII                    = 0x0001,                        /*Mac II hw ID*/
  215.     drHwMacIIx                    = 0x0002,                        /*Mac IIx hw ID*/
  216.     drHWSE30                    = 0x0003,                        /*Mac SE/30 hw ID*/
  217.     drHwMacIIcx                    = 0x0004,                        /*Mac IIcx hw ID*/
  218.     drHWMacIIfx                    = 0x0005,                        /*Mac IIfx hw ID*/
  219.     drHWF19                        = 0x0005,                        /*F19 hw ID*/
  220.     sBlockTransferInfo            = 20,                            /*general slot block xfer info*/
  221.     sMaxLockedTransferCount        = 21,                            /*slot max. locked xfer count*/
  222.     boardId                        = 32,                            /*Board Id*/
  223.     pRAMInitData                = 33,                            /*sPRAM init data*/
  224.     primaryInit                    = 34,                            /*Primary init record*/
  225.     timeOutConst                = 35,                            /*Time out constant*/
  226.     vendorInfo                    = 36,                            /*Vendor information List. See Vendor List, below*/
  227.     boardFlags                    = 37,                            /*Board Flags*/
  228.     secondaryInit                = 38,                            /*Secondary init record/code*/
  229.                                                                 /* The following Id's are associated with all CPU sResources.*/
  230.     MajRAMSp                    = 129,                            /*ID of Major RAM space.*/
  231.     MinROMSp                    = 130,                            /*ID of Minor ROM space.*/
  232.     vendorId                    = 1,                            /*Vendor Id*/
  233.     serialNum                    = 2,                            /*Serial number*/
  234.     revLevel                    = 3,                            /*Revision level*/
  235.     partNum                        = 4,                            /*Part number*/
  236.     date                        = 5                                /*Last revision date of the card*/
  237. };
  238.  
  239.  
  240. enum {
  241.     testByte                    = 32,                            /*Test byte.*/
  242.     testWord                    = 33,                            /*0021*/
  243.     testLong                    = 34,                            /*Test Long.*/
  244.     testString                    = 35                            /*Test String.*/
  245. };
  246.  
  247. /* sResource List. Category: Display        Type: Video */
  248. /* The following Id's are common to all Mode sResources in Display_Video */
  249. /* functional sResources. */
  250.  
  251. enum {
  252.     mBlockTransferInfo            = 5,                            /* slot block xfer info PER MODE */
  253.     mMaxLockedTransferCount        = 6                                /* slot max. locked xfer count PER MODE */
  254. };
  255.  
  256.  
  257. #if PRAGMA_ALIGN_SUPPORTED
  258. #pragma options align=reset
  259. #endif
  260.  
  261. #if PRAGMA_IMPORT_SUPPORTED
  262. #pragma import off
  263. #endif
  264.  
  265. #ifdef __cplusplus
  266. }
  267. #endif
  268.  
  269. #endif /* __ROMDEFS__ */
  270.  
  271.